/****************** Exercise 6 ******************
* Write a program that includes and calls the
* storage() method defined as a code fragment in
* this chapter.
************************************************/

package thinkinginjava.everything_is_an_object;

/**
 *
 * @author vlad
 */
public class Exercise6 {
    public static void main(String[] args){
        System.out.println("The \"Hello, world!\" string requires " + 
                storage("Hello, world!") + " bytes to be stored in memory");
    }
    
    static private int storage(String s){
        return s.length() * 2;
    }
}
